<template>
  <el-input
    v-model="text"
    :maxlength="maxlength"
    :placeholder="placeholderText"
    show-word-limit
    type="text"
  />
</template>

<script>
export default {
  name: "input",
  props: {
    maxlength: {
      type: Number,
      default: 10,
    },
    placeholder: {
      type: String,
      default: () => null,
    },
  },
  data() {
    return {
      text: "",
    };
  },
  computed: {
    placeholderText() {
      return this.placeholder ? this.placeholder : this.$t("pleaseInput");
    },
  },
};
</script>

<style scoped></style>
